{extend name="common/layout"}
<!-- 标题文字 -->
{block name="title"}后台首页{/block}
<!-- 模块名称 -->
{block name="name"}后台首页{/block}
<!-- 模块介绍 -->
{block name="desc"}会当凌绝顶、一览众山小{/block}
<!-- 页内样式 -->
{block name="style"}
<style type="text/css">
.nav-tabs a{cursor:pointer;}
.diqu select{
	display:-webkit-inline-box;
	width: auto;
}
</style>
{/block}
<!-- 正文内容 -->
{block name="content"}
<div class="row">
	
</div>
{/block}
<!-- 业内脚本 -->
{block name="script"}
<script type="text/javascript">
// 日期格式化
Date.prototype.format = function() {
      var s = '';
      var mouth = (this.getMonth() + 1)>=10?(this.getMonth() + 1):('0'+(this.getMonth() + 1));
      var day = this.getDate()>=10?this.getDate():('0'+this.getDate());
      s += this.getFullYear() + '-';
      s += mouth + "-";
      s += day;
      return s;
};
// 前后日期
Date.prototype.skip = function(year, month, date) {
    this.setFullYear(this.getFullYear() + year);
    this.setMonth(this.getMonth() + month);
    this.setDate(this.getDate() + date);
    return this;
}
// 日期之间的所有日期
function date_between(begin, end) {
	var ab = begin.split("-");
	var ae = end.split("-");
	var db = new Date();
	db.setUTCFullYear(ab[0], ab[1] - 1, ab[2]);
	var de = new Date();
	de.setUTCFullYear(ae[0], ae[1] - 1, ae[2]);
	var unixDb = db.getTime();
	var unixDe = de.getTime();
	var dates = [];
	for (var k = unixDb; k <= unixDe;) {
		dates.push((new Date(parseInt(k))).format());
		k = k + 24 * 60 * 60 * 1000;
	}
	return dates;
}
// 标签切换
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
	current = $(e.target).data('target');
	window[current]();
});



</script>
{/block}